package com.sxyjhh.fg_data_push.utils;

import java.io.Serializable;
import java.util.Map;

/**
 * 
 * Ajax请求返回值得json对象的键。
 * @author Leishaokai
 * @version v1.0.1
 */
public class JsonViewResult implements Serializable{
	/**
	 * 属性serialVersionUID的声明
	 */
	private static final long serialVersionUID = 6363453432022012952L;

	/**
	 * 扩展
	 */
	private Map <String,Object> map;
	/**
	 * 状态码
	 */
	private String statusCode;

	/**
	 * 提示信息
	 */
	private String message;
	/**
	 * 返回类型
	 */
	private String callbackType;
	/**
	 * 转发地址
	 */
	private String forwardUrl;
	/**
	 * 确认信息
	 */
	private String  confirmMsg;
	
	/**
	 * 
	 * 创建一个新的实例viewResult.  
	 *
	 */
	public JsonViewResult() {
		this.statusCode = "200";
		this.message = "操作成功！";
	}
	/**
	 * 
	 * 创建一个新的实例 viewResult.  
	 *  
	 * @param statusCode
	 * @param message
	 */
	public JsonViewResult( String statusCode, String message) {
		this.statusCode = statusCode;
		this.message = message;
	}
	
	  
	/**  
	 * 创建一个新的实例 viewResult.  
	 *  
	 * @param statusCode
	 * @param message
	 * @param callbackType  
	 */
	
	
	public JsonViewResult(String statusCode, String message, String callbackType) {
		super();
		this.statusCode = statusCode;
		this.message = message;
		this.callbackType = callbackType;
	}
	/**
	 * 	
	 * 创建一个新的实例 viewResult.  
	 *  
	 * @param modelName
	 * @param statusCode
	 * @param rel
	 * @param navTabId
	 * @param message
	 * @param callbackType
	 * @param forwardUrl
	 */
	public JsonViewResult( String statusCode, String message, String callbackType,
			String forwardUrl) {
		super();
		this.statusCode = statusCode;
		this.message = message;
		this.callbackType = callbackType;
		this.forwardUrl = forwardUrl;
	}
	
	 
	/**   
	 * get map
	 * @return  the map    
	 */
	
	public Map<String, Object> getMap() {
		return map;
	}
	/**   
	 * @param map set map
	 */
	
	public void setMap(Map<String, Object> map) {
		this.map = map;
	}
	public String getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getCallbackType() {
		return callbackType;
	}
	public void setCallbackType(String callbackType) {
		this.callbackType = callbackType;
	}
	public String getForwardUrl() {
		return forwardUrl;
	}
	public void setForwardUrl(String forwardUrl) {
		this.forwardUrl = forwardUrl;
	}
	public String getConfirmMsg() {
		return confirmMsg;
	}
	public void setConfirmMsg(String confirmMsg) {
		this.confirmMsg = confirmMsg;
	}
	
}
